#ifndef QUETELET_INDEX_MAIN_H
#define QUETELET_INDEX_MAIN_H

#include <QStandardItemModel>
#include <QMainWindow>
#include <QFileDialog>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include "ui_quetelet_index_main.h"
#include "quickcalculation.h"
#include "createtable.h"
#include "struct.h"
#include "help.h"

namespace Ui {
class Quetelet_Index_Main;
}

class Quetelet_Index_Main : public QMainWindow
{
    Q_OBJECT
    
public slots:
    void OpenHelpWindow();

public:
    explicit Quetelet_Index_Main(QWidget *parent = 0);
    ~Quetelet_Index_Main();

private slots:

    void on_BT_OpenFile_clicked();

    void on_BT_SaveTable_clicked();

    void on_BT_QuickCalcResult_clicked();

    void on_BT_QuickCalcReset_clicked();

    void on_BT_CreateTable_clicked();

    void on_MainTab_currentChanged(int index);

    void on_BT_Help_clicked();

private:
    Help *HelpWindow;
    Ui::Quetelet_Index_Main *ui;
    CreateTable *CTtable;
    void Set_Quick_Result_Labels();
    void Set_Create_Table_Incorrect_Labels();
    void Clear_All_Inputs();
    bool check(int iWeight, float fLength, int iSteps, int iEndweight, int Modus);
    bool check(int iWeight, float fLength, int Modus);

};

#endif // QUETELET_INDEX_MAIN_H
